<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>类型管理</title>
<load href="__PUBLIC__/Css/admin_style.css"/>

<style type="text/css">

table td{
	border-bottom:1px solid #C2E7DB;
	border-right:1px solid #C2E7DB;
	background-color:#E8F7EE
}
table th{ 
  background-color: #099;
  color:#FFF;
}
body{ 
  background-color:#F3FAF8
}
table,body,td{
  font-size:15px;	
}

</style>
</head>

<body style="margin-left:10px; margin-top:10px;">

<!-- layout::Admin:Sysattr:inc_top::0 -->
<empty name="parid">
<table width="400" border="0" cellpadding="5" cellspacing="1" style="border:#099 3px solid; text-align:center; margin-top:5px;">
  <tr>
    <th>类型名称</th>
    <th align="center">操作</th>
  </tr>
  <volist name="attr_list"  id="vo">
  <tr>
    <td>{$vo.attr_name}</td>
    <td align="center"><a href="{:U('Sysattr/edit/id/'.$vo['id'].'/parid/'.$parid.'/col_id/'.$col_id)}">修改</a>&nbsp;|&nbsp;<a href="{:U('Sysattr/delete/id/'.$vo['id'].'/parid/'.$parid.'/col_id/'.$col_id)}">删除</a>&nbsp;|&nbsp;<a href="{:U('Sysattr/index/col_id/'.$col_id.'/parid/'.$vo['id'])}">属性列表</a></td>
  </tr>
  </volist>
</table>
<else/>
<table width="450" border="0" cellpadding="5" cellspacing="1" style="border:#099 3px solid; text-align:center; margin-top:5px;">
  <tr>
    <th>属性名称</th>
    <th>所属类型</th>
    <th>顺序</th>
    <th align="center">操作</th>
  </tr>
  <volist name="attr_list"  id="vo">
  <tr>
    <td>{$vo.attr_name}</td>
    <td>{$vo.par_name}</td>
    <td><if condition="$vo.sequence lt $maxseq"><a href="__URL__/up/id/{$vo.id}/col_id/{$col_id}/parid/{$parid}" title="向上">↑</a></if>&nbsp;&nbsp;&nbsp;&nbsp;<if condition="$vo.sequence gt $minseq"><a href="__URL__/down/id/{$vo.id}/col_id/{$col_id}/parid/{$parid}" title="向下">↓</a></if></td>
    <td align="center"><a href="{:U('Sysattr/edit/id/'.$vo['id'].'/parid/'.$parid.'/col_id/'.$col_id)}">修改</a>&nbsp;|&nbsp;<a href="{:U('Sysattr/delete/id/'.$vo['id'].'/parid/'.$parid.'/col_id/'.$col_id)}">删除</a></td>
  </tr>
  </volist>
</table>
</empty>

</body>
</html>
